<script type="text/javascript">
//<![CDATA[
$(function(){
	$("#frm-search").submit(function(){
		if($("[name=keyword]").val().trim()){
			location.replace('/sermon/sermonList/keyname/'+encodeURIComponent($("[name=keyname]").val())+'/keyword/'+encodeURIComponent($("[name=keyword]").val()));
		}
		return false;
	});
});
	
//]]>
</script>
<div class="box_type02">
	<h2 class="txt">설교방송관리</h2>
	<p class="icon"><a href="javascript:void(0);" class="icon_m04">매뉴얼</a></p>

	<!--[s] 검색 -->
	<form id="frm-search">
		<fieldset class="search_type01 c_box">
			<legend>검색</legend>
			<select name="keyname">
				<option value="title,content">전체</option>
				<option value="title">제목</option>
				<option value="content">내용</option>
			</select>
			<input type="text" id="" name="keyword" class="ip" style="width:176px;" title="검색어" value="" />
			<input type="submit" class="btn_search" title="검색" value="" />
	
			<a href="sermonForm" class="right"><img src="/theme/<?=$_theme?>/images/common/btn_write.gif" alt="등록" /></a>
		</fieldset>
	</form>
	<!--[e] 검색 -->

	<!--[s] 목록 -->
	<table cellspacing="0" summary="설교방송관리" class="photos lines">
		<caption>설교방송관리</caption>
		<thead>
		<tr>
			<th scope="col" width="55">No.</th>
			<th scope="col" width="88">이미지</th>
			<th scope="col" width="78">일자</th>
			<th scope="col" width="89">예배</th>
			<th scope="col">제목</th>
			<th scope="col" width="71">런닝타임</th>
			<th scope="col" width="76">구분</th>
			<th scope="col" width="42">설정</th>
		</tr>
		</thead>
		<tbody>
		<?php 
			foreach($rst as $row){
				$photo = ($row->list_image) ? 'sermon/'.$row->list_image : 'siteinfo/'.$siteinfo['photo'];
		?>
		<tr>
			<th scope="row"><p><?php echo $list_no?></p></th>
			<td><div><img src="/upload/<?php echo $photo;?>" alt="" /></div></td>
			<td><div><?php echo substr($row->airdate,0,10)?></div></td>
			<td><div><?php echo $row->worship?></div></td>
			<td class="tal"><div><?php echo $row->title?></a></div></td>
			<td><div><?php echo $row->runtime?></div></td>
			<td><div><?php echo $row->open_yn?></div></td>
			<td><div><a href="sermonForm/id/<?php echo $row->sermon_id?>/page/<?php echo $page?>" class="icons icon_m01">설정</a></div></td>
		</tr>
		<?php 
			}
		?>
		<!--<tr>
			<th scope="row"><p>9</p></th>
			<td><div><img src="/theme/<?=$_theme?>/images/common/thumb_80x52.gif" alt="" /></div></td>
			<td><div>2013.05.15</div></td>
			<td><div>주일저녁예배</div></td>
			<td class="tal"><div><a href="javascript:void(0);">새봄을 알리는 아름다운 사람들 이벤트!</a></div></td>
			<td><div>45:05</div></td>
			<td><div>Y</div></td>
			<td><div><a href="javascript:void(0);" class="icons icon_m01">설정</a></div></td>
		</tr>
		<tr>
			<th scope="row"><p>8</p></th>
			<td><div><img src="/theme/<?=$_theme?>/images/common/thumb_80x52.gif" alt="" /></div></td>
			<td><div>2013.05.15</div></td>
			<td><div>주일저녁예배</div></td>
			<td class="tal"><div><a href="javascript:void(0);">새봄을 알리는 아름다운 사람들 이벤트!</a></div></td>
			<td><div>45:05</div></td>
			<td><div>Y</div></td>
			<td><div><a href="javascript:void(0);" class="icons icon_m01">설정</a></div></td>
		</tr>
		<tr>
			<th scope="row"><p>7</p></th>
			<td><div><img src="/theme/<?=$_theme?>/images/common/thumb_80x52.gif" alt="" /></div></td>
			<td><div>2013.05.15</div></td>
			<td><div>주일저녁예배</div></td>
			<td class="tal"><div><a href="javascript:void(0);">새봄을 알리는 아름다운 사람들 이벤트!</a></div></td>
			<td><div>45:05</div></td>
			<td><div>Y</div></td>
			<td><div><a href="javascript:void(0);" class="icons icon_m01">설정</a></div></td>
		</tr>
		<tr>
			<th scope="row"><p>6</p></th>
			<td><div><img src="/theme/<?=$_theme?>/images/common/thumb_80x52.gif" alt="" /></div></td>
			<td><div>2013.05.15</div></td>
			<td><div>주일저녁예배</div></td>
			<td class="tal"><div><a href="javascript:void(0);">새봄을 알리는 아름다운 사람들 이벤트!</a></div></td>
			<td><div>45:05</div></td>
			<td><div>Y</div></td>
			<td><div><a href="javascript:void(0);" class="icons icon_m01">설정</a></div></td>
		</tr>
		<tr>
			<th scope="row"><p>5</p></th>
			<td><div><img src="/theme/<?=$_theme?>/images/common/thumb_80x52.gif" alt="" /></div></td>
			<td><div>2013.05.15</div></td>
			<td><div>주일저녁예배</div></td>
			<td class="tal"><div><a href="javascript:void(0);">새봄을 알리는 아름다운 사람들 이벤트!</a></div></td>
			<td><div>45:05</div></td>
			<td><div>Y</div></td>
			<td><div><a href="javascript:void(0);" class="icons icon_m01">설정</a></div></td>
		</tr>
		<tr>
			<th scope="row"><p>4</p></th>
			<td><div><img src="/theme/<?=$_theme?>/images/common/thumb_80x52.gif" alt="" /></div></td>
			<td><div>2013.05.15</div></td>
			<td><div>주일저녁예배</div></td>
			<td class="tal"><div><a href="javascript:void(0);">새봄을 알리는 아름다운 사람들 이벤트!</a></div></td>
			<td><div>45:05</div></td>
			<td><div>Y</div></td>
			<td><div><a href="javascript:void(0);" class="icons icon_m01">설정</a></div></td>
		</tr>
		<tr>
			<th scope="row"><p>3</p></th>
			<td><div><img src="/theme/<?=$_theme?>/images/common/thumb_80x52.gif" alt="" /></div></td>
			<td><div>2013.05.15</div></td>
			<td><div>주일저녁예배</div></td>
			<td class="tal"><div><a href="javascript:void(0);">새봄을 알리는 아름다운 사람들 이벤트!</a></div></td>
			<td><div>45:05</div></td>
			<td><div>Y</div></td>
			<td><div><a href="javascript:void(0);" class="icons icon_m01">설정</a></div></td>
		</tr>
		<tr>
			<th scope="row"><p>2</p></th>
			<td><div><img src="/theme/<?=$_theme?>/images/common/thumb_80x52.gif" alt="" /></div></td>
			<td><div>2013.05.15</div></td>
			<td><div>주일저녁예배</div></td>
			<td class="tal"><div><a href="javascript:void(0);">새봄을 알리는 아름다운 사람들 이벤트!</a></div></td>
			<td><div>45:05</div></td>
			<td><div>Y</div></td>
			<td><div><a href="javascript:void(0);" class="icons icon_m01">설정</a></div></td>
		</tr> -->
		</tbody>
	</table>
	<!--[e] 목록 -->

	<!--[s] 페이징 -->
	<div class="paging_all c_box">
		<div class="paging">
			<?php echo $paging?>
		</div>
	</div>
	<!--[e] 페이징 -->

	<!--[s] Tip -->
	<dl id="tip" class="mt30">
		<dt>Tip</dt>
		<dd>인터넷익스플로러의 '호환성보기' 기능을 사용중인 접속자에게 자동으로 최신버전 기준으로 사이트를 출력하도록 처리합니다.</dd>
		<dd>코딩방식에 따라 특정 버전의 브라우저에서 사이트가 깨질수 있으니, 충분한 테스트 후 기능을 설정해 주시기 바랍니다.</dd>
	</dl>
	<!--[e] Tip -->
</div>